package com.jiazhong.shuzu;

public class Test03 {
    public static void main(String[] args) {
        int a[]=new int[100];
        int index=0;
        int ge,shi,bai;
        for (int i=100;i<=1000;i++){
            ge=i%10;
            shi=i/10%10;
            bai=i/100;
            if (ge*ge*ge+shi*shi*shi+bai*bai*bai==i){
                a[index]=i;
                index++;
            }
        }
        for (int i=0;i<index;i++){
            System.out.print(" "+a[i]);
        }
    }
}
